package com.k2091.washcar.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.k2091.washcar.entity.Token;
import com.k2091.washcar.mapper.TokenMapper;
import com.k2091.washcar.service.ITokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2021-06-01
 */
@Service
public class TokenServiceImpl extends ServiceImpl<TokenMapper,Token> implements ITokenService{

    @Autowired
    private TokenMapper tokenMapper;

    @Override
    public Token selectToken(String token) {
        return tokenMapper.selectToken(token);
    }

    @Override
    public void addToken(Token token) {
        tokenMapper.insert(token);
    }
}
